{% extends "../base.html" %}
{% block page_title %}金币支出{% end %}
{% block content %}
<div class="countgo pull-left">
    <div class="zt">
        <!--MAN -->
        <div class="remain" style="height: 553px;">
            <div class="gao1"></div>
            <div class="page-header long-header">
                <h3>财务管理
                    <small> 金币支出</small>
                </h3>
            </div>
            <div>
                <ol class="breadcrumb">
                    <li><span class="glyphicon glyphicon-home" aria-hidden="true"></span> <a href="/user/home">主页</a>
                    </li>
                    <li><a href="#">财务管理</a></li>
                    <li class="active">金币支出明细</li>
                </ol>
            </div>


            <div class="panel panel-default">
                <div class="panel-heading">金币支出明细</div>

                <div class="panel-body">
                    您总共收入: <strong>-{{total_consume}}</strong>金币
                </div>

                <table class="table table-striped table-hover">
                    <tbody>
                    <tr>
                        <td>奖金编号</td>
                        <td>奖金类型</td>
                        <td>奖金金额</td>
                        <td>奖金说明</td>
                        <td>发放时间</td>
                    </tr>
                    {%for r in records%}
                    <tr>
                        <td>{{r.get('id')}}</td>
                        <td>{{tip_dict.get(r.get('type'))}}</td>
                        <td>-{{r.get('money')}}</td>
                        <td>{{tip_dict.get(r.get('type'))}} </td>
                        <td>{{r.get('time')}}</td>
                    </tr>


                    {%end%}
                    <tr>
                        <td colspan="5">
                            <div class="clearfix">
                                <div class="btn-group pull-left" role="group"><a class="btn btn-default" href="#"
                                                                                 role="button">首页</a><a
                                        class="btn btn-default" href="?p={{prev_page}}" role="button">上一页</a><a class="btn btn-default"
                                                                                                 href="?p={{next_page}}">下一页</a><a
                                        class="btn btn-default" href="?p={{pages}}">尾页</a></div>
                                <div class="pull-right pt1">&nbsp;页次：<strong><font color="red">{{current_page}}</font>/{{pages}}</strong>页
                                    &nbsp;共<b><font color="#FF0000">{{counts}}</font></b>条记录
                                </div>
                            </div>
                        </td>
                    </tr>
                    </tbody>
                </table>


            </div>
        </div>
        <!--MAN End-->
    </div>
</div>
{%end%}
